/**生成日期：2019-10-11 14:55:32**/
package com.sun.webmanage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sun.pojo.Menu;
import com.sun.pojo.MenuCustom;


public interface MenuMapper {

	//保存
	int saveMenu(Menu menu);
	//修改
	int updateMenu(Menu menu);
	//delete by primary key
	int delMenu(@Param(value="id")Integer id);
	//find by primary key
	Menu loadMenu(@Param(value="id")Integer id);
	
	List<MenuCustom> listChildMenuByPid(@Param(value="pid")Integer pid);
	
	//加载所有菜单
	List<MenuCustom> listMenu();
	
	//加载所有一级菜单
	List<MenuCustom> listRootMenu();

}